/*$Id$*/ var nCookies = ["ZabSplit", "ztpctest"];//NO I18N var fCookies = ["zabHMBucket", "zabBucket"];//NO I18N var aCookies = ["zsstssn", "zsltssn"];//NO I18N Currentdate = new Date(); Currentdate.setTime(Currentdate.getTime() + (90 * 24 * 60 * 60 * 1000)); var zcmsgs = {};//NO I18N zcmsgs.t_necessary = "They are necessary for our website to function and cannot be switched off in our systems. They are essential in order to enable you to navigate around the website and use its features. If you remove or disable these cookies, we cannot guarantee that you will be able to use our websites.";//NO I18N zcmsgs.t_functional = "They allow us to remember the choices made by you (such as your user name, language or region) as well as other functionalities (such as controlling the cookie banner, redirection to a new page) in order to provide a more personalised online experience. These preferences are remembered (through the use of persistent cookies) so that you need not set them again the next time you visit the page.";//NO I18N zcmsgs.t_analytics = "They help us improve the way our websites work (e.g. by ensuring that users are finding what they are looking for easily). These collect aggregate information about visits, navigations in the websites so that we can make improvement and report our performance. Analytics cookies may also be used to test new pages or features to understand how users adopt them.";//NO I18N var cookie_configs = { "package_name": "zoho", //NO I18N "default": "on",//NO I18N "theme" : 2,//NO I18N "position": 2, //NO I18N "layout" : 1, //NO I18N "f_manage_dialog": false,//NO I18N "f_decline_btn": false, //NO I18N "f_privacy_btn": true,//NO I18N "accept_btn_text":"Accept",//NO I18N "decline_btn_text": "Decline", //NO I18N "manage_btn_text": "Manage",//NO I18N "cp_url": "https://www.zoho.com/sites/cookie-policy/",//NO I18N "cp_url_label": "Cookie Policy", //NO I18N "cp_text": "This website uses cookies to enable you to navigate smoothly through the site, use its features, and to help us understand and serve you better.",//NO I18N "after_decline_msg":false,//NO I18N "after_decline_msg_text":"Clear browsing data to remove the cookie cache from this website. Declining cookie policy may affect the overall quality and user experience of the website.",//NO I18N "after_decline_msg_buttontext":"Okay, Close.",//NO I18N "zpcategories": //NO I18N { "t_necessary":{ //NO I18N "zpc_name": "Strictly Necessary", //NO I18N "default": "on", //NO I18N "editable":false //NO I18N }, "t_functional": {//NO I18N "zpc_name": "Functional/Preference", //NO I18N "default": "on", //NO I18N "editable":true//NO I18N }, "t_analytics":{ //NO I18N "zpc_name": "Analytics", //NO I18N "default": "off", //NO I18N "editable":true//NO I18N } }, "version":"1.0",//NO I18N "manage_heading":"Cookie Settings",//NO I18N "manage_message":"Functional cookies and analytical cookies are used on this website. Functional cookies are necessary for the website to work properly. Analytical cookies are cookies that enable the management of web statistics with which we can improve the user experience on our website. You may choose to opt out from Analytical cookies, but please note that a cookie will be set on your device to remember your preferences. Read more about these cookies in our "//NO I18N }; function getBoolean(boolVal){ if(typeof boolVal === "string"){ if(boolVal === "true"){ return true; }else if(boolVal === "false"){ return false; } } return boolVal; } //var nCookies = [ "zsstssn", "zsltssn", "zabUserId", "zabHMBucket", "zabBucket", "zabVisitId", "ZabSplit", "ztpctest", "cookie-uid", "creator_cd", "zpzohopage", "zpzohoref","PaymentsReferral"]; /*zcglobal_cookie_optOut values - 0 for opt in for both analytical and functional 1 for opt out from both analytical and functional 2 for opt out from analytical and opt in for functional 3 for opt in for analytical and opt out from functional */ var cookieBanner = (function() { if ("undefined" === typeof(_zcBan)) { var _zcBan = {}; window._zcBan = _zcBan; _zcBan.show = function(zpc_json) { _zcBan.bload=function(zp_cookie_json) { if (_getById("zpcookie-banner") == null) { for(key in zp_cookie_json){ cookie_configs[key]=zp_cookie_json[key]; } if(cookie_configs.zcmsgs){ zcmsgs = cookie_configs.zcmsgs; } zpcookie_json=cookie_configs; var flag_display = localStorage.getItem("zcp_shown"); // NO I18N if (flag_display == null || getBoolean(flag_display) == false) { localStorage.setItem("zcp_shown", false);//NO I18N /* Include css file */ var zp_cssid = "zpc-banner";//NO I18N if (!_getById(zp_cssid)) { var head = document.getElementsByTagName('head')[0]; var link = _createElem('link');//NO I18N link.id = zp_cssid; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = zpcookie_json.cookie_cdn_css; link.media = 'all';//NO I18N head.appendChild(link); } var accept_html = ['', //NO I18N zpcookie_json.accept_btn_text, '' ].join(""); var manage_str = ""; var decline_html = ""; var details_str = zpcookie_json.f_privacy_btn ? ['', //NO I18N zpcookie_json.cp_url_label , ''].join("") : ""; var position_class = zpcookie_json.position == 1 ? "zpcookie-banner-top" :"zpcookie-banner-bottom";//NO I18N if (getBoolean(zpcookie_json.f_manage_dialog) == true) { zps = zpcookie_json.zpcategories; manage_str = '

'+ zpcookie_json.manage_message+''+zpcookie_json.cp_url_label+'

' + '
'; for (var i in zps) { var fcheck = ""; if (zps[i].default == "on") { fcheck = "checked" } if (getBoolean(zps[i].editable) == false) { fcheck = fcheck + " disabled" } //var msg_var=i+"_msg"; manage_str = manage_str + ['
', '', '
', '', '', '
', '' + zcmsgs[i] + '', 'Learn More', '
', '
', '
'].join("") } manage_str = manage_str + '
'; accept_html = ['', //NO I18N zpcookie_json.manage_btn_text, ''].join(""); } if (getBoolean(zpcookie_json.f_decline_btn) != false) { decline_html = ['', //NO I18N zpcookie_json.decline_btn_text, ''].join(""); } var odiv = _createElem('div');//NO I18N odiv.setAttribute('id', 'zpcookie-banner'); _addClass(odiv, position_class); var idiv = _createElem('div');//NO I18N idiv.setAttribute('id', 'zpcookie-banner-msgbar'); _addClass(idiv, "zpcookie-message-bar");//NO I18N var theme_class ; if (zpcookie_json.layout == 2){ theme_class = zpcookie_json.theme == 1 ? "zpdark" : "zplight" //NO I18N _addClass(odiv, "zpcustom-layout-2");//NO I18N _addClass(idiv, "msg-left-align");//NO I18N } else { theme_class = zpcookie_json.theme == 1 ? "zpdark-section zpdark-section-bg" : "zplight-section zplight-section-bg" //NO I18N } _addClass(odiv, theme_class); idiv.innerHTML = [ '', '

', '',zpcookie_json.cp_text + details_str,'', '', accept_html + decline_html , '', '

'].join(""); //var bodytag = document.getElementsByTagName('body')[0]; var bodytag = document.body; odiv.appendChild(idiv); bodytag.insertBefore(odiv, bodytag.firstChild); // Adds the Cookie Law Banner just after the opening tag _addClass(bodytag, "cookiebanner");//NO I18N //Adds a class tothe tag when the banner is visible var modal_div = _createElem('div');//NO I18N _addClass(modal_div, "zs-popup");//NO I18N modal_div.style.display = "none"; modal_div.innerHTML = ['
', '
', '
', '

'+zpcookie_json.manage_heading+'

', '', '
' +manage_str + '
', '
', '', //NO I18N '
'].join(""); bodytag.insertBefore(modal_div, bodytag.firstChild); var cookies = document.cookie.split("; "); } } } if (/interactive|complete|loaded/.test(document.readyState)) { _zcBan.bload(zpc_json); } else { document.addEventListener('DOMContentLoaded', _zcBan.bload.bind(null, zpc_json), true); } } } })(window); //We use some essential cookies in order to remember your session details and cookie preferences. //We'd also like to use optional analytics, performance and marketing cookies in order to help us improve the site, its content and your browsing experience. //If you're happy for use to do this please click the "Accept all cookies" button below. Alternatively, to find out more, click "Manage cookies". if (_zcBan.timmer) { clearTimeout(_zcBan.timmer); } _zcBan.timmer = setTimeout(function() { _zcBan.show(zpcookie_json); }, 100); _zcBan.close_consent = function(e) { if (document.querySelector(".zs-popup")) { document.querySelector(".zs-popup").style.display = "none"; } } _zcBan.set_cookie_config = function(config) { if (config){ var cookie_script_tag = document.getElementById('zc_configuration'); cookie_script_tag.innerText= cookie_script_tag.innerText+"\nvar pagesense_config="+JSON.stringify(config); //NO I18N } } _zcBan.is_integrated_banner = function (e) { return _zcBan.cookie_config.is_integrated_banner; } _zcBan.decline_consent = function(e) { zpcookie_json.default = "off";//NO I18N window._zcBan.close_consent(); if(typeof user_decline_consent === "function"){ user_decline_consent(); } //if need can invalidate the functional cookies var event = new CustomEvent('declineConsent', { detail: zpcookie_json, bubbles:true, cancelable:true });//NO I18N // Dispatch the event. _getById("zpconsent-decline").dispatchEvent(event); //NO I18N localStorage.setItem("zcp_shown", true);//NO I18N if(getBoolean(zpcookie_json.after_decline_msg)){ var decline_html = ['', //NO I18N zpcookie_json.after_decline_msg_buttontext, ''].join(""); _getById('zpcookie-banner-msgbar').innerHTML = ['

', zpcookie_json.after_decline_msg_text, ''+ decline_html + '', '

'].join("");//NO I18N }else{ _zcBan.after_decline_consent(); } } _zcBan.after_decline_consent = function(e) { _getById('zpcookie-banner').style.display = "none"; } _zcBan.manage_consent = function(e) { if (document.querySelector(".zs-popup")) { document.querySelector(".zs-popup").style.display = ""; } } _zcBan.accept_consent = function(e) { _getById('zpcookie-banner').style.display = "none"; var c_str = 0; if (getBoolean(zpcookie_json.f_manage_dialog) == true) { zps = zpcookie_json.zpcategories; for (var i in zps) { if (_getById(i).className == "zc-off") { if (i.indexOf('functional') != -1) { c_str = c_str.replace("f:false", "f:true"); fCookies.forEach(function(c, l) { document.cookie = c + "=; path=/; expires=" + new Date(0).toUTCString(); }); } } } } if(typeof user_accept_consent === "function"){ user_accept_consent(); } var event = new CustomEvent('acceptConsent', { detail: zpcookie_json, bubbles:true, cancelable:true });//NO I18N // Dispatch the event. _getById("zpconsent-manage").dispatchEvent(event);//NO I18N window._zcBan.close_consent(); localStorage.setItem("zcp_shown", true);//NO I18N } _zcBan.toggleSlider = function(elem) { if (_hasClass(elem, "zc-on")) { elem.className = "zc-off"; } else if (_hasClass(elem, "zc-off")) { elem.className = "zc-on"; } } function _getCookie(name) { let cookie = {}; document.cookie.split(';').forEach(function(el) { let [k, v] = el.split('='); cookie[k.trim()] = v; }) return cookie[name]; } function _createElem(type) { return document.createElement(type); } function _getById(id) { return document.getElementById(id); } function _addClass(el, cls) { if (!_hasClass(el, cls)) { el.className += " " + cls; } } function _hasClass(el, cls) { var re = new RegExp('(\\s|^)' + cls + '(\\s|$)'); return re.test(el.className); }